package 数组

import scala.collection.mutable.ArrayBuffer

object ArrayToJavaList {
  def main(args: Array[String]): Unit = {

    val value = ArrayBuffer(1, 2, 3, 4, 5)
    /*引入隐式函数,从 scala->java 的转换*/ ;
    import scala.jdk.CollectionConverters
    val value1 = CollectionConverters.BufferHasAsJava(value)
    println(value1.asJava)
  }


}
